package com.hd.assistant.web.common.display;

import java.util.List;

import com.hd.assistant.dal.dataobject.ClickedDetail;

public class DisplayItemClickReport{
	String itemId;
	Integer totalCount = 0;
	Integer daySize = 0;
	String title;
	String clickedId;
	List<ClickedDetail> details;
	String appType;
	String clickedPic;
	
	public String getClickedPic() {
		return clickedPic;
	}
	public void setClickedPic(String clickedPic) {
		this.clickedPic = clickedPic;
	}
	public Integer getTotalCount() {
		return totalCount;
	}
	public void setTotalCount(Integer totalCount) {
		this.totalCount = totalCount;
	}
	public Integer getDaySize() {
		return daySize;
	}
	public void setDaySize(Integer daySize) {
		this.daySize = daySize;
	}
	public String getClickedId() {
		return clickedId;
	}
	public void setClickedId(String clickedId) {
		this.clickedId = clickedId;
	}
	public String getAppType() {
		return appType;
	}
	public void setAppType(String appType) {
		this.appType = appType;
	}
	public String getItemId() {
		return itemId;
	}
	public void setItemId(String itemId) {
		this.itemId = itemId;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public List<ClickedDetail> getDetails() {
		return details;
	}

	public void setDetails(List<ClickedDetail> details) {
		this.details = details;
		
		if(details != null && details.size() > 0){
			this.daySize = details.size();
			for(ClickedDetail detail :details){
				if(title == null)
					title = detail.getClickedTitle();
				if(clickedId == null)
					clickedId = detail.getClickedId();
				totalCount += detail.getClickedNum();
			}
		}
	}
	
}
